package com.xiaoyun.advicetemplate.vo;

import com.xiaoyun.advicetemplate.entity.Order;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;


@Data
@EqualsAndHashCode
public class OrderEncrypt implements Serializable {

    private Integer id;
    private String orderName;
    private String orderPrice;
    private Integer orderCount;

    public OrderEncrypt build(Order order) {
        BeanUtils.copyProperties(order, this);
        return this;
    }

}
